package com.fangzc.codegen.entity.tables;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 * 表定义层。
 *
 * @author FANGZC-TB14
 * @since 2023-05-27
 */
public class TSysDept extends TableDef {

    public static final TSysDept sys_dept = new TSysDept("sys_dept");

    public QueryColumn dept_id = new QueryColumn(this, "dept_id");
    public QueryColumn parent_id = new QueryColumn(this, "parent_id");
    public QueryColumn ancestors = new QueryColumn(this, "ancestors");
    public QueryColumn dept_name = new QueryColumn(this, "dept_name");
    public QueryColumn order_num = new QueryColumn(this, "order_num");
    public QueryColumn leader = new QueryColumn(this, "leader");
    public QueryColumn phone = new QueryColumn(this, "phone");
    public QueryColumn email = new QueryColumn(this, "email");
    public QueryColumn status = new QueryColumn(this, "status");
    public QueryColumn del_flag = new QueryColumn(this, "del_flag");
    public QueryColumn create_by = new QueryColumn(this, "create_by");
    public QueryColumn create_time = new QueryColumn(this, "create_time");
    public QueryColumn update_by = new QueryColumn(this, "update_by");
    public QueryColumn update_time = new QueryColumn(this, "update_time");

    public QueryColumn[] default_columns = new QueryColumn[]{dept_id, parent_id, ancestors, dept_name, order_num, leader, phone, email, status, create_by, create_time, update_by, update_time};
    public QueryColumn[] all_columns = new QueryColumn[]{dept_id, parent_id, ancestors, dept_name, order_num, leader, phone, email, status, del_flag, create_by, create_time, update_by, update_time};

    public TSysDept(String tableName) {
        super(tableName);
    }
}
